<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
  <title>Command Line Editing</title>
  <style type="text/css">
  body {
  background-color: #E0D8C8;
  color: #000000;
  }
  div.c1 {text-align: center}
  </style>
</head>
<body>
  <div class="c1">
    <h2>Command Line Editing</h2>
  </div><a name="emacs"></a>
  <div class="c1">
    <h3>Emacs Bindings</h3>
  </div>
  <table>
    <tr>
      <th align="left">Key Sequence</th>
      <th align="left">Function</th>
    </tr>
    <tr>
      <td align="left">BackSpace</td>
      <td align="left">backward delete character</td>
    </tr>
    <tr>
      <td align="left">Delete</td>
      <td align="left">backward delete character</td>
    </tr>
    <tr>
      <td align="left">Left</td>
      <td align="left">backward character</td>
    </tr>
    <tr>
      <td align="left">Right</td>
      <td align="left">forward character</td>
    </tr>
    <tr>
      <td align="left">Up</td>
      <td align="left">previous command</td>
    </tr>
    <tr>
      <td align="left">Down</td>
      <td align="left">next command</td>
    </tr>
    <tr>
      <td align="left">Home</td>
      <td align="left">beginning of line</td>
    </tr>
    <tr>
      <td align="left">End</td>
      <td align="left">end of line</td>
    </tr>
    <tr>
      <td align="left">C-a</td>
      <td align="left">move to beginning of line</td>
    </tr>
    <tr>
      <td align="left">C-b</td>
      <td align="left">move back one character</td>
    </tr>
    <tr>
      <td align="left">C-c</td>
      <td align="left">interrupt</td>
    </tr>
    <tr>
      <td align="left">C-d</td>
      <td align="left">delete character at cursor</td>
    </tr>
    <tr>
      <td align="left">C-e</td>
      <td align="left">move to end of line</td>
    </tr>
    <tr>
      <td align="left">C-f</td>
      <td align="left">move forward one character</td>
    </tr>
    <tr>
      <td align="left">C-h</td>
      <td align="left">backward delete character</td>
    </tr>
    <tr>
      <td align="left">C-k</td>
      <td align="left">delete to end of line</td>
    </tr>
    <tr>
      <td align="left">C-n</td>
      <td align="left">next history command</td>
    </tr>
    <tr>
      <td align="left">C-p</td>
      <td align="left">previous history command</td>
    </tr>
    <tr>
      <td align="left">C-t</td>
      <td align="left">transpose characters</td>
    </tr>
    <tr>
      <td align="left">C-u</td>
      <td align="left">delete whole line</td>
    </tr>
    <tr>
      <td align="left">C-w</td>
      <td align="left">backward delete word</td>
    </tr>
  </table><br>
  <hr>
  <br>
  <a name="vi"></a>
  <div class="c1">
    <h3>VI Bindings</h3>
  </div>
  <table>
    <caption>
      <strong>Insert and Command Mode</strong>
    </caption>
    <tr>
      <th align="left">Key Sequence</th>
      <th align="left">Function</th>
    </tr>
    <tr>
      <td align="left">Delete</td>
      <td align="left">backward delete character</td>
    </tr>
    <tr>
      <td align="left">Up</td>
      <td align="left">previous command</td>
    </tr>
    <tr>
      <td align="left">Down</td>
      <td align="left">next command</td>
    </tr>
    <tr>
      <td align="left">Home</td>
      <td align="left">beginning of line</td>
    </tr>
    <tr>
      <td align="left">End</td>
      <td align="left">end of line</td>
    </tr>
    <tr>
      <td align="left">Control-a</td>
      <td align="left">beginning of line</td>
    </tr>
    <tr>
      <td align="left">Control-b</td>
      <td align="left">backward character</td>
    </tr>
    <tr>
      <td align="left">Control-c</td>
      <td align="left">interrupt command</td>
    </tr>
    <tr>
      <td align="left">Control-e</td>
      <td align="left">end of line</td>
    </tr>
    <tr>
      <td align="left">Control-f</td>
      <td align="left">forward character</td>
    </tr>
    <tr>
      <td align="left">Control-h</td>
      <td align="left">backward delete character</td>
    </tr>
    <tr>
      <td align="left">Control-k</td>
      <td align="left">delete end of line</td>
    </tr>
    <tr>
      <td align="left">Control-n</td>
      <td align="left">next command</td>
    </tr>
    <tr>
      <td align="left">Control-p</td>
      <td align="left">previous command</td>
    </tr>
    <tr>
      <td align="left">Control-t</td>
      <td align="left">transpose</td>
    </tr>
    <tr>
      <td align="left">Control-u</td>
      <td align="left">delete to beginning of line</td>
    </tr>
    <tr>
      <td align="left">Control-w</td>
      <td align="left">backward delete word</td>
    </tr>
  </table>
  <pre>

</pre>
  <table>
    <caption>
      <strong>Insert Mode</strong>
    </caption>
    <tr>
      <th align="left">Key Sequence</th>
      <th align="left">Function</th>
    </tr>
    <tr>
      <td align="left">Escape</td>
      <td align="left">command</td>
    </tr>
    <tr>
      <td align="left">Left</td>
      <td align="left">backward character, command</td>
    </tr>
    <tr>
      <td align="left">Right</td>
      <td align="left">forward character, command</td>
    </tr>
    <tr>
      <td align="left">BackSpace</td>
      <td align="left">backward delete character</td>
    </tr>
  </table>
  <pre>

</pre>
  <table>
    <caption>
      <strong>Command Mode</strong>
    </caption>
    <tr>
      <th align="left">Key Sequence</th>
      <th align="left">Function</th>
    </tr>
    <tr>
      <td align="left">Left</td>
      <td align="left">backward character</td>
    </tr>
    <tr>
      <td align="left">Right</td>
      <td align="left">forward character</td>
    </tr>
    <tr>
      <td align="left">BackSpace</td>
      <td align="left">backward character</td>
    </tr>
    <tr>
      <td align="left">Space</td>
      <td align="left">forward character</td>
    </tr>
    <tr>
      <td align="left">A</td>
      <td align="left">end of line, insert (i.e. append to end of
      line)</td>
    </tr>
    <tr>
      <td align="left">C</td>
      <td align="left">delete to end of line, insert</td>
    </tr>
    <tr>
      <td align="left">D</td>
      <td align="left">delete to end of line</td>
    </tr>
    <tr>
      <td align="left">F</td>
      <td align="left">search backward character</td>
    </tr>
    <tr>
      <td align="left">I</td>
      <td align="left">beginning of line, insert</td>
    </tr>
    <tr>
      <td align="left">R</td>
      <td align="left">overwrite</td>
    </tr>
    <tr>
      <td align="left">X</td>
      <td align="left">backward delete character</td>
    </tr>
    <tr>
      <td align="left">0</td>
      <td align="left">beginning of line</td>
    </tr>
    <tr>
      <td align="left">$</td>
      <td align="left">end of line</td>
    </tr>
    <tr>
      <td align="left">;</td>
      <td align="left">continue search in same direction</td>
    </tr>
    <tr>
      <td align="left">,</td>
      <td align="left">continue search in opposite direction</td>
    </tr>
    <tr>
      <td align="left">a</td>
      <td align="left">forward character, insert (i.e. append)</td>
    </tr>
    <tr>
      <td align="left">b</td>
      <td align="left">backward word</td>
    </tr>
    <tr>
      <td align="left">c</td>
      <td align="left">change</td>
    </tr>
    <tr>
      <td align="left">d</td>
      <td align="left">delete</td>
    </tr>
    <tr>
      <td align="left">e</td>
      <td align="left">end of word</td>
    </tr>
    <tr>
      <td align="left">f</td>
      <td align="left">search forward character</td>
    </tr>
    <tr>
      <td align="left">h</td>
      <td align="left">backward character</td>
    </tr>
    <tr>
      <td align="left">i</td>
      <td align="left">insert</td>
    </tr>
    <tr>
      <td align="left">j</td>
      <td align="left">next command</td>
    </tr>
    <tr>
      <td align="left">k</td>
      <td align="left">previous command</td>
    </tr>
    <tr>
      <td align="left">l</td>
      <td align="left">forward character</td>
    </tr>
    <tr>
      <td align="left">r</td>
      <td align="left">replace character</td>
    </tr>
    <tr>
      <td align="left">s</td>
      <td align="left">delete character, insert</td>
    </tr>
    <tr>
      <td align="left">w</td>
      <td align="left">forward word</td>
    </tr>
    <tr>
      <td align="left">x</td>
      <td align="left">delete character</td>
    </tr>
  </table>
</body>
</html>
